package avicit.bdp.dms.tdm.dao;

import avicit.bdp.common.base.BaseDAO;
import avicit.bdp.dms.tdm.dto.BdpAssetDTO;
import com.github.pagehelper.Page;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface BdpAssetDao extends BaseDAO<BdpAssetDTO> {

  /**
   * 查询分页列表
   *
   * @param catalogIdList 目录ID
   * @param keyWords 查询关键词
   * @return 分页列表
   */
  Page<BdpAssetDTO> getPageList(
      @Param("assetType") String assetType,
      @Param("labelList") List<String> labelList,
      @Param("catalogIdList") List<String> catalogIdList,
      @Param("keyWords") String keyWords,
      @Param("releaseTitle") String releaseTitle,
      @Param("releaseStatus") Integer releaseStatus,
      @Param("releaseDateBegin") String releaseDateBegin,
      @Param("releaseDateEnd") String releaseDateEnd,
      @Param("status") Integer status,
      @Param("createdBy") String createdBy,
      @Param("wordSecretList") List<String> wordSecretList);

  void addCallCount(@Param("id") String id);
}
